package com.itheima.exception;

import com.itheima.common.IErrorCode;
import lombok.Data;

@Data
public class BusinessException extends RuntimeException{
    private IErrorCode errorCode;

    public BusinessException(IErrorCode errorCode) {
        super(errorCode.getMessage());
        this.errorCode = errorCode;
    }
}

